package com.project.bean;

import java.util.List;

/**
 * 频道实体类
 */
public class ChannelBean {
    //频道id
    private Integer id;
    //频道名称
    private String channelName;
    //频道描述
    private String channelContent;
    //主贴数量
    private Integer postNum;
    //主贴集合
    private List<PostBean> postList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public String getChannelContent() {
        return channelContent;
    }

    public void setChannelContent(String channelContent) {
        this.channelContent = channelContent;
    }

    public Integer getPostNum() {
        return postNum;
    }

    public void setPostNum(Integer postNum) {
        this.postNum = postNum;
    }

    public List<PostBean> getPostList() {
        return postList;
    }

    public void setPostList(List<PostBean> postList) {
        this.postList = postList;
    }

    @Override
    public String toString() {
        return "ChannelBean{" +
                "id=" + id +
                ", channelName='" + channelName + '\'' +
                ", channelContent='" + channelContent + '\'' +
                ", postNum=" + postNum +
                ", postList=" + postList +
                "}\n";
    }
}
